package com.easy.frame.common.process.entity.template.dto;

import com.easy.frame.common.process.core.emum.CompareTypeEnum;
import com.easy.frame.common.process.core.emum.ExamineTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 添加流程条件参数对象
 *
 * @author zzf
 * @date 2021/3/31 19:34
 */
@Data
public class ProcessConditionAddDTO {

    @NotNull
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * @see ExamineTypeEnum
     */
    @NotBlank
    @ApiModelProperty("涉及到的表对象")
    private Integer targetName;

    @NotBlank
    @ApiModelProperty("字段名")
    private String fieldName;

    /**
     * @see CompareTypeEnum
     */
    @ApiModelProperty("比较类型")
    private Integer compareType;

    @ApiModelProperty("比较的值（部分用数组的json字符串形式保存）")
    private String vals;

    @NotNull
    @ApiModelProperty("上一个节点id(为0表示起始分叉)")
    private Long prevNodeId;

    @NotNull
    @ApiModelProperty("下一个节点id")
    private Long nextNodeId;

}
